package com.tomorrowbbs.mapper;

import java.util.List;
import com.tomorrowbbs.domain.ForumArticleAttachmentDownload;

/**
 * 用户附件下载Mapper接口
 * 
 * @author zjz
 * @date 2024-11-09
 */
public interface ForumArticleAttachmentDownloadMapper 
{
    /**
     * 查询用户附件下载
     * 
     * @param fileId 用户附件下载主键
     * @return 用户附件下载
     */
    public ForumArticleAttachmentDownload selectForumArticleAttachmentDownloadByFileId(String fileId);

    /**
     * 查询用户附件下载列表
     * 
     * @param forumArticleAttachmentDownload 用户附件下载
     * @return 用户附件下载集合
     */
    public List<ForumArticleAttachmentDownload> selectForumArticleAttachmentDownloadList(ForumArticleAttachmentDownload forumArticleAttachmentDownload);

    /**
     * 新增用户附件下载
     * 
     * @param forumArticleAttachmentDownload 用户附件下载
     * @return 结果
     */
    public int insertForumArticleAttachmentDownload(ForumArticleAttachmentDownload forumArticleAttachmentDownload);

    /**
     * 修改用户附件下载
     * 
     * @param forumArticleAttachmentDownload 用户附件下载
     * @return 结果
     */
    public int updateForumArticleAttachmentDownload(ForumArticleAttachmentDownload forumArticleAttachmentDownload);

    /**
     * 删除用户附件下载
     * 
     * @param fileId 用户附件下载主键
     * @return 结果
     */
    public int deleteForumArticleAttachmentDownloadByFileId(String fileId);

    /**
     * 批量删除用户附件下载
     * 
     * @param fileIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteForumArticleAttachmentDownloadByFileIds(String[] fileIds);

    ForumArticleAttachmentDownload selectForumArticleAttachmentDownloadByInfo(String fileId, String userId);
}
